import { BaseApi } from "@/api/base";
import http from "@/api/http";

class MicroEntityApi extends BaseApi {
  constructor(url) {
    super(url);
  }
  listField = <T>(params: any): Promise<T> => {
    return http.get(this.url + "/listField", params);
  };
  listAll = <T>(params: any): Promise<T> => {
    return http.get(this.url + "/listAll", params);
  };
  getPkFields = <T>(params: any): Promise<T> => {
    return http.get(this.url + "/getPkFields", params);
  };
}
export default new MicroEntityApi("/micro/entity");
